<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>DOM 查找</title>
    <script>
        document.getElementById()
        [document|Element].getElementsByClassName()
        [document|Element].getElementsByTagName()
        [document|Element].querySelector()
        [document|Element].querySelectorAll()
    </script>
</head>
<body>
    <h1>DOM 查找示例</h1>
    <ul>
        <li id="id">document.getElementById</li>
        <li class="class">getElementsByClassName</li>
        <li>getElementsByTagName</li>
        <li>querySelector</li>
        <li>querySelectorAll</li>
    </ul>
</body>
</html>